package com.mycompany.client.states;

import com.mycompany.client.RootJobFrame;
import com.mycompany.protocol.RootJobCommand;
import javax.swing.JFrame;

/**
 *
 * @author Admin
 */
public class RootJobState implements ClientState {

    private final RootJobFrame rootJobFrame = new RootJobFrame();

    @Override
    public JFrame getClientFrame() {
        return rootJobFrame;
    }

    @Override
    public void updateFrame(Object obj) {
        RootJobCommand command = (RootJobCommand) obj;
        rootJobFrame.updateRootJobPanel(command);
    }
}
